<template>
  <div class="admin">
    <p class="title">后台管理系统</p>
    <el-row>
      <el-col :span="12" :offset="6">
        <el-form ref="form" :model="form" label-width="80px">
          <el-form-item label="账号">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
          <el-form-item label="密码">
            <el-input v-model="form.password" show-password></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="onSubmit">登录</el-button>
          </el-form-item>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  // @ is an alias to /src
  import HelloWorld from '@/components/HelloWorld.vue'
  export default {
    name: 'admin',
    data() {
      return {
        form: {
          name: '',
          password: ''
        }
      }
    },
    components: {},
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>

<style scoped lang="less">
  .admin {
    .title {
      text-align: center;
      font-size: 30px;
      font-weight: bold;
    }
  }
</style>
